<?php
function maakHoofding($titel) {
		echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
		<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl">
  		<head>
   				<meta http-equiv="content-type" content="text/html; charset=utf-8" />
   				<title>' . $titel . '</title>
   				<link rel="stylesheet" type="text/css" media="all" href="style/styles.css" />
                                <link rel="stylesheet" type="text/css" media="all" href="style/slimbox2.css" />                    
                                <link rel="stylesheet" href="fancybox/jquery.fancybox-1.3.1.css" type="text/css" media="screen" />

                                <script type="text/JavaScript" src="js/curvycorners.js"></script>
                                <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
                                <script type="text/javascript" src="js/slimbox2.js"></script>
                                <script type="text/javascript" src="js/vote.js"></script>
                                <script type="text/javascript" src="fancybox/jquery.fancybox-1.3.1.js"></script>
<script>
        $(document).ready(function() {
            $("a.kandidaat").fancybox({
                    \'hideOnContentClick\': true
            });

            /* This is basic - uses default settings */

            $("a#single_image").fancybox();

            /* Using custom settings */

            $("a#inline").fancybox({
                    \'hideOnContentClick\': true
            });

            $("a.group").fancybox({
		\'speedIn\': 600,
		\'speedOut\': 200,
		\'overlayShow\': false
            });
        });
        </script>

                    <script type="text/JavaScript">
                        window.onload = function() {
                            var settings = {
                                bl: { radius: 25 },
                                br: { radius: 25 },
                                antiAlias: true
                            }
                            var divObj = document.getElementById("onderkant");
                            curvyCorners(settings, divObj);

                            var settings2 = {
                                tl: { radius: 25 },
                                tr: { radius: 25 },
                                antiAlias: true
                            }
                            var divObj = document.getElementById("nav");
                            curvyCorners(settings2, divObj);
                           var divObj = document.getElementById("navcontainer");
                            curvyCorners(settings2, divObj);
                       }
                    </script>
		</head>
' ;
}
function maakfooter() {
    echo '<div id="onderkant">
        <marquee scrollamount="10">
               <pre>KULEUVEN - AVNet fotowedstrijd.                 Uploaden van foto\'s kan t/m 30 april 2010.                 Stemmen kan van 1 mei 2010 t/m 14 mei 2010</pre>
        </marquee>
    </div>' ;
}
function maakTitelBalk() {
    echo '<div id="banner"><img alt="banner" src="style/banner.jpg" /></div>';
}
function menu()  {
    $menu=file_get_contents("menu.htm");
    $base=basename($_SERVER['PHP_SELF']);
    if ($base == 'Categorien.php') {
       $base = 'stem.php' ;
    }
    $menu=preg_replace("|<li><a href=\"".$base."\">(.*)</a></li>|U", "<li><a href=\"#\" class=\"current\">$1</a></li>", $menu);
    echo $menu;
}
function getCategorien($path){
    $xmlDoc = new DOMDocument();
    $xmlDoc->load($path);
    $xmlCat = $xmlDoc->getElementsByTagName('categorie');
    $categorien=array();
    foreach($xmlCat as $categorie)
    {
        $categorien[] = $categorie->nodeValue;
    }
    return $categorien;
}
include_once 'SimpleImage.php';
include_once 'parser_php4.php';
?>